package com.clkj.xiuzheng.pojo.shangcheng;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;


/**
* 
* @TableName t_xz_productDiscussion
*/
@ApiModel( value ="t_xz_productDiscussion" )
@Table( name ="t_xz_productDiscussion" )
public class ProductDiscussion implements Serializable {

    /**
    * 问答区 id
    */
    @Id
    @Column(name = "discussion_id" ,updatable = false)
    @ApiModelProperty("问答区 id")
    private Integer discussionId;
    /**
    * 用户id
    */
    @Column(name = "user_id")
    @ApiModelProperty("用户id ")
    private Integer userId;
    /**
    * 问答类型 0 提问问题 
    */
    @Column(name = "discussion_parent_id")
    @ApiModelProperty("问答类型 0 提问问题 ")
    private Integer discussionParentId;
    /**
    * 问答内容
    */

    @ApiModelProperty("问答内容")
    @Column(name = "discussion_content")
    private String discussionContent;
    /**
    * 商品id
    */
    @Column(name = "product_id")
    @ApiModelProperty("商品id")
    private Integer productId;
    /**
    * 公司id
    */
    @Column(name = "company_id")
    @ApiModelProperty("公司id")
    private Integer companyId;
    /**
    * 发出日期
    */
    @Column(name = "create_time")
    @ApiModelProperty("发出日期")
    private String createTime;
    /**
    * 0删
    */
    @Column(name = "status")
    @ApiModelProperty("0删")
    private Integer status;

    /**
     * 问答类型 0 问 1 答
     */
    @Column(name = "discussion_type")
    @ApiModelProperty("问答类型 0 问 1 答")
    private Integer discussionType;


    /**
    * 是否置顶
    */
    @Column(name = "is_top")
    @ApiModelProperty("是否置顶")
    private Integer isTop;

    @Transient
    private String productName;

    @Transient
    private String userName;

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }



    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getDiscussionParentId() {
        return discussionParentId;
    }

    public void setDiscussionParentId(Integer discussionParentId) {
        this.discussionParentId = discussionParentId;
    }

    public String getDiscussionContent() {
        return discussionContent;
    }

    public void setDiscussionContent(String discussionContent) {
        this.discussionContent = discussionContent;
    }

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public Integer getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Integer companyId) {
        this.companyId = companyId;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getIsTop() {
        return isTop;
    }

    public void setIsTop(Integer isTop) {
        this.isTop = isTop;
    }

    public Integer getDiscussionType() {
        return discussionType;
    }

    public void setDiscussionType(Integer discussionType) {
        this.discussionType = discussionType;
    }

    public Integer getDiscussionId() {
        return discussionId;
    }

    public void setDiscussionId(Integer discussionId) {
        this.discussionId = discussionId;
    }
}
